﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using DNA.Mvc.Data.Entity;

namespace DNA.Mvc.Community.Data.Entity
{
    public class GenericForumRepository<T> : EntityRepositoryBase<ForumDb, T>
        where T : class
    {
        public GenericForumRepository()
        {
            context = new ForumDb();
            dbSet = this.Context.Set<T>();
            IsOwnContext = true;
        }

        public GenericForumRepository(ForumDb db)
        {
            context =db;
            dbSet = this.Context.Set<T>();
            IsOwnContext = false;
        }

    }
}
